package com.caolei1992.web.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * @author xbuding
 * @version 1.0
 * @since 2019/4/26
 */
@Getter
public class LimitIpRequestException extends RuntimeException {
    private Integer status = HttpStatus.FORBIDDEN.value();

    public LimitIpRequestException(String msg) {
        super(msg);
    }

    public LimitIpRequestException(HttpStatus status, String msg) {
        super(msg);
        this.status = status.value();
    }
}
